/**
 * 
 * purpose: manager params between sections...
 * @auth: Ning
 * date: 2009-8-20
 * 
 * */
package core.section
{
	public class ParamsManager
	{
		
		//START...
		
		private static var params:Object = new Object;
		
		
		//get params...
		public static function getParams(pagename:String):Object
		{
			
			var data:Object;
			
			if(params.hasOwnProperty(pagename))
			{
				
				data = params[pagename];
		
				delete params[pagename]
				
			}
			
			return data;
			
		}
		
		//set params...
		public static function setParams(pagename:String,data:Object):void
		{
			
			params[pagename] = data;
			
		}
		
		
		
		//END
	}
}